<?php
class Accountmanager_Data_Insertcomment implements Accountmanager_Data_Mainable{
    
    private $core_controller_dataoperation;
    
    public function __construct() {
        $this->core_controller_dataoperation = new Core_Controller_Dataoperation;
    }
    
    public function main(array $variables = null) {
        $variables['query'] = "INSERT INTO page_comments(username, page_name, comment_text, status_name) VALUES('".$variables['session']['username']."', '".$variables['post']['page_name']."', '".$variables['post']['comment_text']."', 'Nieaktywny');";
        return $this->core_controller_dataoperation->main($variables);
    }
}
